package xcmg.device.dao.mapper.threeGuaranteesPur;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.threeGuaranteesPur.ThreeGuaranteesPurDetailDO;
import xcmg.device.service.vo.threeGuaranteesPur.ThreeGuaranteesPurAllDetailVO;
import xcmg.device.service.vo.threeGuaranteesPur.ThreeGuaranteesPurDetailQueryVO;

import java.util.List;

@Mapper
public interface ThreeGuaranteesPurDetailMapper {
    int delete(@Param("id") String id);

    int add(ThreeGuaranteesPurDetailDO record);

    int update(ThreeGuaranteesPurDetailDO record);

    int remove(@Param("ids") List<String> ids);

    List<ThreeGuaranteesPurDetailDO> list(@Param("threeGuaPurNo") String threeGuaPurNo);

    int deleteBy(@Param("threeGuaPurNo") String threeGuaPurNo);

    ThreeGuaranteesPurDetailDO findByNo(@Param("threeGuaPurNo") String threeGuaPurNo, @Param("materialsNo") String materialsNo);

    int removeByPurIdList(@Param("ids") List<String> ids);

    List<ThreeGuaranteesPurAllDetailVO> listDetail(ThreeGuaranteesPurDetailQueryVO filters);
}